Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

B.4.1 StructureDefinition: SDC-Questionnaire

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/sdc-questionnaire

Defines how Questionnaire is used to reflect form definitions to be used within the ONC's Structured Data Capture standard.

This profile was published on Mon, Apr 21, 2014 00:00+1000 as a draft by Health Level Seven International (Orders and Observations - Structured Data Capture).

B.4.1.1 Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Questionnaire.

Summary

Mandatory: 2 elements (+5 nested mandatory elements)
Must-Support: 43 elements

Extensions

This structure refers to these extensions:

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*Questionnaire
... identifier S0..*Identifier
... version S0..1string
... status S1..1code
... date S1..1dateTime
... publisher S0..1string
... title S1..1string
.... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
... concept S0..1Coding
... subjectType S0..*code
... item S0..*BackboneElement
.... linkId S1..1string
.... concept S0..1Coding
.... text S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... type S1..1code
.... required S1..1boolean
.... repeats S1..1boolean
.... options S0..1Reference(ValueSet)
.... option S0..*Coding
.... item S0..*
.... questionnaire-label S0..1stringE.g. "1(a)", "2.5.3"
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-label
.... questionnaire-minOccurs S0..1integerMinimum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
.... questionnaire-maxOccurs S0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... sdc-questionnaire-optionalDisplay 0..1booleanCan suppress from display to user
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-enableWhen S0..*(Complex)Only allow data when:
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
..... question S1..1stringQuestion that must be answered
URL: question
..... answered S0..1booleanwhen answered or not
URL: answered
..... answer S0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaValue question must have
URL: answer
.... questionnaire-itemControl S0..1CodeableConceptE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation 0..1codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
.... questionnaire-defaultValue S0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaInitial presumed answer for question
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-defaultValue
.... questionnaire-readOnly S0..1booleanDon't allow human editing
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-readOnly
.... minLength S0..1integerAt least this many characters
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... questionnaire-maxLength S0..1integerNo more than this many characters
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength
.... regex S0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringUser prompt for format
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... questionnaire-deReference S0..1Reference(DataElement)Implemented CDE
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
.... questionnaire-allowedResource S0..*codeAllowed resource for reference
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
.... questionnaire-displayCategory S0..1CodeableConceptPurpose of rendered text
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
... sdc-questionnaire-endpoint S0..*uriWhere to send answers
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanIs associated Provenance needed?
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanAre styles important for processing?
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-category S0..1CodeableConceptWhat kind of questionnaire?
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-category
... questionnaire-deMap 0..1Reference(ConceptMap)Map linking questions to DataElements
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA structured set of questions
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... sdc-questionnaire-endpoint S0..*uriExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-category S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-category
... questionnaire-deMap 0..1Reference(ConceptMap)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S 0..*IdentifierExternal identifiers for this questionnaire
... version S 0..1stringLogical identifier for this version of Questionnaire
... status ?! S1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date S 1..1dateTimeDate this version was authored
... publisher S 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... title S 1..1stringName for the questionnaire
.... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
.... value 0..1Primitive value for string
... concept S 0..1CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType S 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item S I0..*BackboneElementQuestions and sections within the Questionnaire
que-1: Group items must have nested items, display items cannot have nested items
que-3: Display items cannot have a "concept" asserted
que-5: Only 'choice' items can have options
que-4: A question cannot have both option and options
que-6: Required and repeat aren't permitted for display items
.... questionnaire-label S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-label
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-label"
..... valueString 1..1stringValue of extension
...... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
...... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
...... value 0..1Primitive value for string
.... questionnaire-minOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
inv-3: minOccurs can't exist for display items
inv-1: minOccurs can't be more than one if required is false
.... questionnaire-maxOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
inv-2: maxOccurs can't be more than one if repeats is false
inv-4: maxOccurs can't exist for display items
.... sdc-questionnaire-optionalDisplay 0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-enableWhen S I0..*(Complex)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
..... question S I1..1stringExtension
URL: question
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"question"
...... valueString 1..1stringValue of extension
..... answered S I0..1booleanExtension
URL: answered
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"answered"
...... valueBoolean 1..1booleanValue of extension
..... answer S I0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaExtension
URL: answer
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"answer"
...... value[x] 1..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaValue of extension
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen"
.... questionnaire-itemControl S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation I0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
inv-6: choiceOrientation can only be present on elements of type "choice" or "open-choice"
.... questionnaire-defaultValue S I0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-defaultValue
inv-7: Default values can't be specified for groups or display items
.... questionnaire-readOnly S I0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-readOnly
inv-8: Read-only can't be specified for "display" items
.... minLength S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... questionnaire-maxLength S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength
inv-12: Maximum length can only be declared for simple question types
.... regex S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... questionnaire-deReference S I0..1Reference(DataElement)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
inv-9: Data Element references can't be specified for "display" items
.... questionnaire-allowedResource S I0..*codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
inv-10: Allowed resource can only be specified for items of type 'reference'
.... questionnaire-displayCategory S I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
inv-11: Display category can only be specified for items of type display
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringTo link questionnaire with questionnaire response
.... concept S I0..1CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... text S 0..1stringPrimary text for the item
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... type S1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... required S I1..1booleanWhether the group must be included in data results
.... repeats S I1..1booleanWhether the group may repeat
.... options S I0..1Reference(ValueSet)Valueset containing permitted answers
.... option S I0..*CodingPermitted answer
Binding: Questionnaire Answer Codes (example)
.... item S I0..*See Questionnaire.itemNested questionnaire items

doco Documentation for this format

todo

This structure is derived from Questionnaire.

Summary

Mandatory: 2 elements (+5 nested mandatory elements)
Must-Support: 43 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*Questionnaire
... identifier S0..*Identifier
... version S0..1string
... status S1..1code
... date S1..1dateTime
... publisher S0..1string
... title S1..1string
.... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
... concept S0..1Coding
... subjectType S0..*code
... item S0..*BackboneElement
.... linkId S1..1string
.... concept S0..1Coding
.... text S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... type S1..1code
.... required S1..1boolean
.... repeats S1..1boolean
.... options S0..1Reference(ValueSet)
.... option S0..*Coding
.... item S0..*
.... questionnaire-label S0..1stringE.g. "1(a)", "2.5.3"
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-label
.... questionnaire-minOccurs S0..1integerMinimum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
.... questionnaire-maxOccurs S0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... sdc-questionnaire-optionalDisplay 0..1booleanCan suppress from display to user
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-enableWhen S0..*(Complex)Only allow data when:
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
..... question S1..1stringQuestion that must be answered
URL: question
..... answered S0..1booleanwhen answered or not
URL: answered
..... answer S0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaValue question must have
URL: answer
.... questionnaire-itemControl S0..1CodeableConceptE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation 0..1codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
.... questionnaire-defaultValue S0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaInitial presumed answer for question
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-defaultValue
.... questionnaire-readOnly S0..1booleanDon't allow human editing
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-readOnly
.... minLength S0..1integerAt least this many characters
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... questionnaire-maxLength S0..1integerNo more than this many characters
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength
.... regex S0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringUser prompt for format
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... questionnaire-deReference S0..1Reference(DataElement)Implemented CDE
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
.... questionnaire-allowedResource S0..*codeAllowed resource for reference
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
.... questionnaire-displayCategory S0..1CodeableConceptPurpose of rendered text
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
... sdc-questionnaire-endpoint S0..*uriWhere to send answers
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanIs associated Provenance needed?
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanAre styles important for processing?
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-category S0..1CodeableConceptWhat kind of questionnaire?
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-category
... questionnaire-deMap 0..1Reference(ConceptMap)Map linking questions to DataElements
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA structured set of questions
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... sdc-questionnaire-endpoint S0..*uriExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-category S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-category
... questionnaire-deMap 0..1Reference(ConceptMap)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S 0..*IdentifierExternal identifiers for this questionnaire
... version S 0..1stringLogical identifier for this version of Questionnaire
... status ?! S1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date S 1..1dateTimeDate this version was authored
... publisher S 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... title S 1..1stringName for the questionnaire
.... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
.... value 0..1Primitive value for string
... concept S 0..1CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType S 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item S I0..*BackboneElementQuestions and sections within the Questionnaire
que-1: Group items must have nested items, display items cannot have nested items
que-3: Display items cannot have a "concept" asserted
que-5: Only 'choice' items can have options
que-4: A question cannot have both option and options
que-6: Required and repeat aren't permitted for display items
.... questionnaire-label S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-label
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-label"
..... valueString 1..1stringValue of extension
...... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
...... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
...... value 0..1Primitive value for string
.... questionnaire-minOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
inv-3: minOccurs can't exist for display items
inv-1: minOccurs can't be more than one if required is false
.... questionnaire-maxOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
inv-2: maxOccurs can't be more than one if repeats is false
inv-4: maxOccurs can't exist for display items
.... sdc-questionnaire-optionalDisplay 0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-enableWhen S I0..*(Complex)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
..... question S I1..1stringExtension
URL: question
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"question"
...... valueString 1..1stringValue of extension
..... answered S I0..1booleanExtension
URL: answered
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"answered"
...... valueBoolean 1..1booleanValue of extension
..... answer S I0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaExtension
URL: answer
inv-5: enableWhen must contain either an 'answer' or an 'answered' element
...... url 1..1uri"answer"
...... value[x] 1..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaValue of extension
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen"
.... questionnaire-itemControl S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation I0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
inv-6: choiceOrientation can only be present on elements of type "choice" or "open-choice"
.... questionnaire-defaultValue S I0..1boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), MetaExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-defaultValue
inv-7: Default values can't be specified for groups or display items
.... questionnaire-readOnly S I0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-readOnly
inv-8: Read-only can't be specified for "display" items
.... minLength S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... questionnaire-maxLength S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength
inv-12: Maximum length can only be declared for simple question types
.... regex S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... questionnaire-deReference S I0..1Reference(DataElement)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
inv-9: Data Element references can't be specified for "display" items
.... questionnaire-allowedResource S I0..*codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
inv-10: Allowed resource can only be specified for items of type 'reference'
.... questionnaire-displayCategory S I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
inv-11: Display category can only be specified for items of type display
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringTo link questionnaire with questionnaire response
.... concept S I0..1CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... text S 0..1stringPrimary text for the item
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... type S1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... required S I1..1booleanWhether the group must be included in data results
.... repeats S I1..1booleanWhether the group may repeat
.... options S I0..1Reference(ValueSet)Valueset containing permitted answers
.... option S I0..*CodingPermitted answer
Binding: Questionnaire Answer Codes (example)
.... item S I0..*See Questionnaire.itemNested questionnaire items

doco Documentation for this format

XML Template

JSON Template

todo

 

Other representations of profile: Schematron

B.4.1.2 Terminology Bindings

PathNameConformanceValueSet
Questionnaire.language?extrequiredhttp://tools.ietf.org/html/bcp47
Questionnaire.statusQuestionnaireStatusrequiredQuestionnaireStatus
Questionnaire.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.subjectTypeResourceTyperequiredResourceType
Questionnaire.item.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.item.typeQuestionnaireItemTyperequiredQuestionnaireItemType
Questionnaire.item.optionQuestionnaire Answer CodesexampleQuestionnaire Answer Codes

B.4.1.3 Constraints

IdPathDetailsRequirements
que-2QuestionnaireThe link ids for groups and questions must be unique within the questionnaire
XPath: count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))
que-1Questionnaire.itemGroup items must have nested items, display items cannot have nested items
XPath: not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))
que-3Questionnaire.itemDisplay items cannot have a "concept" asserted
XPath: not(f:type/@value='display' and f:concept)
que-5Questionnaire.itemOnly 'choice' items can have options
XPath: f:type/@value=('choice','open-choice') or not(f:option or f:options)
que-4Questionnaire.itemA question cannot have both option and options
XPath: not(f:options and f:option)
que-6Questionnaire.itemRequired and repeat aren't permitted for display items
XPath: not(f:type/@value='display' and (f:required or f:repeats))
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-5Questionnaire.item.extension.extensionenableWhen must contain either an 'answer' or an 'answered' element
XPath: f:extension[@url=('answered', 'answer')]
inv-5Questionnaire.item.extension.extensionenableWhen must contain either an 'answer' or an 'answered' element
XPath: f:extension[@url=('answered', 'answer')]
inv-5Questionnaire.item.extension.extensionenableWhen must contain either an 'answer' or an 'answered' element
XPath: f:extension[@url=('answered', 'answer')]
inv-5Questionnaire.item.extension.extensionenableWhen must contain either an 'answer' or an 'answered' element
XPath: f:extension[@url=('answered', 'answer')]
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
.